#include "Signal.hh"
#include "CondVar.hh"

Signal* Signal::generate(SignalType Type)
{
	Signal* Return;
	switch (Type)
	{
		case CondVarType:
			Return = new CondVar();
			break;
		
		default:
			notifyError(Type, "Unknow type.");
			Return = NULL;
	}
	
	checkNullWOR(Return, "Return is NULL.");
	return Return;
}
